<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body{
	font-family:Arial, Helvetica, sans-serif; font-size:12px; 
}
</style>

</head>

<body>
<?php if($this->short != 'yes'){?>
<h1><img src="http://<?php echo WEB_IP;?>/prcode/jobid-gd.php?sno=<?php echo $this->idStaff; ?>-<?php echo $this->cycle; ?>-<?php echo substr($this->year,2);?>" height="28"  width="320"/> <?php echo $this->idStaff; ?>-<?php echo $this->cycle; ?>-<?php echo substr($this->year,2);?> </h1>
<h1>Your Unconfirmed Shift Record<br />
  Staff Name: <?php echo $this->name;?> ( <?php echo $this->nick;?> )

</h1>
<div id = 'table1' style = "height:540px; width:600px; padding:10px;">
<table width="600" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <th align="left" scope="col" ><h2><?php echo $this->dateBegin;?> to <?php echo $this->dateEnd;?></h2></th>
    <th align="right" scope="col" ><h2>Cycle:<?php echo $this->cycle;?></h2></th>
  </tr>
  <tr>
    <th scope="col"   style=" border-bottom:#000 solid 2px;" >Date</th>
    <th   style=" border-bottom:#000 solid 2px;" scope="col" >Hour</th>
  </tr>
 <?php 
 $totalHr = 0;
 foreach($this->arrRes as $k => $v){?> 
  <tr>
    <td align="center" valign="middle"><?php echo $k;?></td>
    <td align="center" valign="middle"><?php echo $v; $totalHr += $v;?></td>
  </tr>
  <?php }?>
  <?php if($this->bonus != 0){?>
  <tr>
  	<td align="center" valign="middle">T/R Bonus</td>
    <td align="center" valign="middle">$ <?php echo $this->bonus?></td>
  </tr>
  <?php }?>
  <tr>
    <td align="center" valign="middle" style=" border-top:#000 solid 2px;">Total:</td>
    <td align="center" valign="middle" style=" border-top:#000 solid 2px;" > <?php echo $totalHr;?> Hour(s)</td>
  </tr>  
</table>
<br />

</div>

<div style="padding:0px; margin-top:30px; height:250px; width:600px;">


<table width="500px" border="0" cellspacing="0" cellpadding="10">
	<tr>
		<td>Payslip for :<?php echo $this->name;?></td>
	</tr>
	<tr>
		<td>Pay period from:<?php echo $this->dateBegin;?> To:<?php echo $this->dateEnd;?></td>
	</tr>
	<tr>
		<td>Gross Pay:$<?php echo $this->total;?></td>
	</tr>


</table>

<br />
<br />

I,___________________________confirmed all above information are correct,<br/> I have received my payment correctly<br/><br/>
Signature:____________________<br/>
<br/>
Date:________________________<br/><br/>
<br />
<?php echo $this->comm;?></div>
<?php }else{ ?>
	<h1><img src="http://<?php echo WEB_IP;?>/prcode/jobid-gd.php?sno=<?php echo 'S-'.$this->idStaff; ?>-<?php echo $this->cycle; ?>-<?php echo substr($this->year,2);?>" height="28"  width="320"/> <?php echo 'S-'.$this->idStaff; ?>-<?php echo $this->cycle; ?>-<?php echo substr($this->year,2);?> </h1>
<h1>Your Unconfirmed Shift Record<br />
  Staff Name: <?php echo $this->name;?> ( <?php echo $this->nick;?> )

</h1>
<div id = 'table1' style = "height:540px; width:600px; padding:10px;">
<table width="600" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <th align="left" scope="col" ><h2><?php echo $this->dateBegin;?> to <?php echo $this->dateEnd;?></h2></th>
    <th align="right" scope="col" ><h2>Cycle:<?php echo $this->cycle;?></h2></th>
  </tr>
  <tr>
    <th scope="col"   style=" border-bottom:#000 solid 2px;" >Date</th>
    <th   style=" border-bottom:#000 solid 2px;" scope="col" >Hour</th>
  </tr>
  <tr>
    <td align="center" valign="middle"><?php echo $this->dateEnd;?></td>
    <td align="center" valign="middle"><?php echo $this->hour;?></td>
  </tr>
  <tr>
    <td align="center" valign="middle" style=" border-top:#000 solid 2px;">Total:</td>
    <td align="center" valign="middle" style=" border-top:#000 solid 2px;" > <?php echo $this->hour;?> Hour(s)</td>
  </tr>  
</table>
<br />

</div>

<div style="padding:0px; margin-top:30px; height:250px; width:600px;">


<table width="500px" border="0" cellspacing="0" cellpadding="10">
	<tr>
		<td>Payslip for :<?php echo $this->name;?></td>
	</tr>
	<tr>
		<td>Pay period from:<?php echo $this->dateBegin;?> To:<?php echo $this->dateEnd;?></td>
	</tr>
	<tr>
		<td>Gross Pay:$<?php echo $this->total;?></td>
	</tr>


</table>

<br />
<br />

I,___________________________confirmed all above information are correct,<br/> I have received my payment correctly<br/><br/>
Signature:____________________<br/>
<br/>
Date:________________________<br/><br/>
<br />
<?php echo $this->comm;?></div>
<?php } ?>
</body>
</html>
